﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLibrary.DataModel.Basic
{
    public class FolderEntity
    {
        public String FolderID { get; set; }

        public String FolderName { get; set; }

        public String CreateTime { get; set; }

        public String UpdateTime { get; set; }

        /// <summary>
        ///  文件夹父级编号
        /// </summary>
        public String FolderPID { get; set; }

        public String UserID { get; set; }

        //public List<FileEntity> Files { get; set; }
    }

    public class FolderList
    {
        public List<FileEntity> Files { get; set; }

        public List<FolderEntity> Folders { get; set; }
    }

    public class FolderNode
    {
        public FolderNode()
        {
            folders = new List<FolderNode>();
            files = new List<FileEntity>();
        }

        public String FolderID { get; set; }

        public String FolderName { get; set; }

        public String CreateTime { get; set; }

        public String UpdateTime { get; set; }

        /// <summary>
        ///  文件夹父级编号
        /// </summary>
        public String FolderPID { get; set; }

        public String UserID { get; set; }

        private List<FolderNode> folders;
        public List<FolderNode> Folders
        {
            get
            {
                return folders;
            }
            set
            {
                folders = value;
            }
        }

        private List<FileEntity> files;
        public List<FileEntity> Files
        {
            get
            {
                return files;
            }
            set
            {
                files = value;
            }
        }
    }

    public class FolderNodes
    {
        private List<FolderNode> folders;

        public List<FolderNode> Folders
        {
            get
            {
                return folders;
            }
            set
            {
                folders = value;
            }
        }
    }
}
